import request from '@/utils/request'

// 查询邮寄工单列表
export function listPost(query) {
  return request({
    url: '/fs/post/list',
    method: 'get',
    params: query
  })
}

// 查询邮寄工单详细
export function getPost(id) {
  return request({
    url: '/fs/post/' + id,
    method: 'get'
  })
}

// 新增邮寄工单
export function addPost(data) {
  return request({
    url: '/fs/post',
    method: 'post',
    data: data
  })
}

// 修改邮寄工单
export function updatePost(data) {
  return request({
    url: '/fs/post',
    method: 'put',
    data: data
  })
}

// 删除邮寄工单
export function delPost(id) {
  return request({
    url: '/fs/post/' + id,
    method: 'delete'
  })
}

export function start(id) {
  return request({
    url: '/fs/post/start/' + id,
    method: 'get'
  })
}
export function wl(id) {
  return request({
    url: '/fs/post/wl/' + id,
    method: 'get'
  })
}
